﻿using System;

namespace TestPaper
{
    class Program
    {
        static void Main(string[] args)
        {
            for (int i = 1; i < 275; i++)
            {
                int r = TestPaperLevel.TestPaper(string.Format("./images/{0}.jpg", i), out double contrast, out int level, i);

                if (r == 0)
                    Console.WriteLine(string.Format("{0}: contrast:{1} level:{2}", i, contrast, level));
                else
                    Console.WriteLine(string.Format("{0}: {1}", i, r));
            }

            Console.ReadKey();
        }
    }
}
